<!-- SearchByAddress index -->

<link href='<?php echo CSS_URL ?>page/AIC.page.SearchByAddress.css' rel='stylesheet' type='text/css' />

<script src='<?php echo JS_URL ?>page/AIC.page.SearchByAddress.js' type='text/javascript'></script>
<script src='<?php echo JS_URL ?>_Shared/jquery.validate.js' type='text/javascript'></script>

<div class="header"><h1>Eldercare Service Locator</h1></div>

<?php include VIEW_PATH . '_Shared/search/searchNavigation.php' ?>

<div class="module_header"><h2>Search by Address</h2></div>


Please enter your address *


<form id='frmSearch' action='<?php echo BASE_URL ?>SearchByAddress/Search' method='post'>


	<div>
		<table>
			<tr>
				<td><input id="radPostal" name="radSearchType" type="radio" value="postal" ></td>
				<td><label for="radPostal">Postal Code</label></td>
				<td><input id="txtPostal" name="txtPostal" type="text" value="" /></td>
				<!--onfocus="document.getElementById('rblSearchByPostalCode').checked=true;" -->
			</tr>
			<tr>
				<td><input id="radStreet" name="radSearchType" type="radio" value="street" ></td>
				<td><label for="radStreet">Street Name / Block</label></td>
				<td>
					<input id="txtStreet" name="txtStreet" type="text" >
					<input id="txtBlockNo" name="txtBlockNo" type="text"  >
				</td>
			</tr>
			<tr>
				<td><input id="radBuilding" name="radSearchType" type="radio" value="building" ></td>
				<td><label for="radBuilding">Building Name</label></td>
				<td><input id="txtBuilding" name="txtBuilding" type="text" ></td>
			</tr>
			<tr>
				<td></td>
				<td><label>Search Within</label></td>
				<td>
					<?php 
						$options = array( ''  => '--Select--', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '100' => 'More than 10' );
						echo form_dropdown('cboSearchWithin', $options);
					?>
					<label>km from specified address</label>
				</td>
			</tr>
		</table>
	</div>

	<br/><br/>
	<div><b>Select any of the services below (You may select more than 1 type of service)</b></div>
	<br/>

	<?php include VIEW_PATH . '_Shared/search/serviceList.php' ?> <!--	element: chkServiceType -->

	<div id='btnSelectAllServices' name='btnSelectAllServices' title="Select All Services" >Select All Services</div>
	<div id='btnReset' name='btnReset' title="Reset fields" >Reset</div>

	<?php include VIEW_PATH . '_Shared/search/organisationTypeButtons.php' ?>
	<!--element : hidOrganisationType , btnSearchVoluntaryOrganisation , btnSearchPrivateOrganisation
	, btnSearchGovernmentOrganisation , btnSearchAllOrganisation-->
	   
	<hr>

</form->


<br/><br/>
<span class='red'>*</span> <span class='note'>Represents mandatory fields</span>


